<?php

require_once "core-application/class.index.php";
require_once "core-application/core/class.tamplate.php";

if( ! empty($_POST['user']) && ! empty($_POST['pass']))
{
	
	$Index = new index;
	
	$email = $_POST['user'];
	$pass = $_POST['pass'];
	
	
	if($Index -> login($email, $pass) == TRUE)
	{
		header("Location: selectuser.php");
	}
	
}

?>